﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Save.aspx.cs" Inherits="MvcMall.AdminWeb.Manage.Articles.Save" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta http-equiv="x-ua-compatible" content="ie=7" />
    <link href="/Scripts/Validate/pagevalidator.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/Site.css" rel="stylesheet" type="text/css" />
    <link href="/Styles/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="/Scripts/jquery-ui.min.js" type="text/javascript"></script>
    <script src="/Scripts/Validate/pagevalidator.js" type="text/javascript"></script>
    <script>
        $(function () {
            $("#tabs").tabs();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <UC:ValidatorContainer runat="server" IsScriptManagerInside="false" ID="ValidatorContainer" />
    <div id="tabs">
        <ul>
            <li><a href="#add">新增/修改文章</a></li></ul>
        <div id="add">
            <fieldset>
                <asp:Label ID="lblId" runat="server" Visible="false"></asp:Label>
                <div class="editor-label">
                    文章标题:
                </div>
                <div class="editor-field">
                    <asp:TextBox ID="txtTitle" runat="server" MaxLength="128" Width="400px"></asp:TextBox>
                    <div id="txtTitleTip" style="width: 200px;">
                    </div>
                    <UC:ValidateTarget ID="ValidateTarget1" ContainerId="ValidatorContainer" runat="server"
                        OkMessage="OK" NullMessage="文章标题不能为空" ControlToValidate="txtTitle" Nullable="false"
                        FocusMessage="请输入文章标题">
                        <Validators>
                            <UC:InputStringClientValidator ErrorMessage="请输入文章标题" UpperBound="128" />
                        </Validators>
                    </UC:ValidateTarget>
                </div>
                <div class="editor-label">
                    所属分类:
                </div>
                <div class="editor-field">
                    <asp:DropDownList ID="ddlCats" runat="server" DataTextField="Text" DataValueField="Value">
                    </asp:DropDownList>
                </div>
                <div class="editor-label">
                    排序编号:
                </div>
                <div class="editor-field">
                    <asp:TextBox ID="txtSortOrder" runat="server" MaxLength="6" Width="200px"></asp:TextBox>
                    <div id="txtSortOrderTip" style="width: 200px;">
                    </div>
                    <UC:ValidateTarget ID="ValidateTarget2" ContainerId="ValidatorContainer" runat="server"
                        OkMessage="OK" NullMessage="排序编号不能为空" ControlToValidate="txtSortOrder" Nullable="false"
                        FocusMessage="请输入排序编号">
                        <Validators>
                            <UC:InputStringClientValidator ErrorMessage="请输入排序编号" Regex="\\d*$" UpperBound="6" />
                        </Validators>
                    </UC:ValidateTarget>
                </div>
                <div class="editor-label">
                    是否显示:
                </div>
                <div class="editor-field">
                    <asp:CheckBox ID="chkIsShow" runat="server" Text="显示" />
                </div>
                <div class="editor-label">
                    内容:
                </div>
                <div class="editor-field">
                    <UC:FCKeditor ID="txtContent" runat="server" ToolbarSet="Basic" Width="700px" Height="300px">
                    </UC:FCKeditor>
                </div>
                <p>
                    <asp:Button ID="btnSave" runat="server" Text="保存文章" OnClientClick="return PageIsValid();"
                        OnClick="btnSave_Click" /></p>
            </fieldset>
        </div>
    </div>
    </form>
</body>
</html>
